package org.jvending.provisioning.config.adapters.impl;

public class AdapterTypeDriver implements org.apache.ws.jaxme.impl.JMSAXDriver {
    public org.xml.sax.helpers.AttributesImpl getAttributes(org.apache.ws.jaxme.impl.JMSAXDriverController pController, java.lang.Object pObject) throws org.xml.sax.SAXException {
        org.xml.sax.helpers.AttributesImpl _1 = new org.xml.sax.helpers.AttributesImpl();
        return _1;
    }

    public java.lang.String getPreferredPrefix(java.lang.String pURI) {
        if (pURI == null) {
            pURI = "";
        }
        if (pURI.equals("http://java.sun.com/xml/ns/j2ee-cp")) {
            return "j2ee-cp";
        }
        return null;
    }

    public void marshalChilds(org.apache.ws.jaxme.impl.JMSAXDriverController pController, org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXException {
        org.jvending.provisioning.config.adapters.AdapterType _1 = (org.jvending.provisioning.config.adapters.AdapterType) pObject;
        java.lang.String _2 = _1.getAdapterName();
        if (_2 != null) {
            pController.marshalSimpleChild(this, "http://java.sun.com/xml/ns/j2ee-cp", "adapter-name", _1.getAdapterName());
        }
        java.lang.String _3 = _1.getAdapterClass();
        if (_3 != null) {
            pController.marshalSimpleChild(this, "http://java.sun.com/xml/ns/j2ee-cp", "adapter-class", _1.getAdapterClass());
        }
        java.lang.String _4 = _1.getBaseUri();
        if (_4 != null) {
            pController.marshalSimpleChild(this, "http://java.sun.com/xml/ns/j2ee-cp", "base-uri", _1.getBaseUri());
        }
        org.jvending.provisioning.config.adapters.DescriptorFileType _5 = _1.getDescriptorFile();
        if (_5 != null) {
            org.apache.ws.jaxme.impl.JMSAXDriver _6 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.config.adapters.DescriptorFile.class).getDriver();
            pController.marshal(_6, "http://java.sun.com/xml/ns/j2ee-cp", "descriptor-file", _1.getDescriptorFile());
        }
        java.lang.String _7 = _1.getFulfillmentDuration();
        if (_7 != null) {
            pController.marshalSimpleChild(this, "http://java.sun.com/xml/ns/j2ee-cp", "fulfillment-duration", _1.getFulfillmentDuration());
        }
        java.util.List _8 = _1.getInitParam();
        for (int _9 = 0; _9 < (_8).size(); _9++) {
            org.apache.ws.jaxme.impl.JMSAXDriver _10 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.config.adapters.InitParam.class).getDriver();
            pController.marshal(_10, "http://java.sun.com/xml/ns/j2ee-cp", "init-param", (org.jvending.provisioning.config.adapters.InitParamType) _8.get(_9));
        }
    }

}
